package com.yan.domain;

public class Student1 {
    private String id;
    private String name;
    private String sex;
    private double high;
    private int age;

    public Student1(String id, String name, String sex, double high, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.high = high;
        this.age = age;
    }

    public Student1() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void getInfo(){
        System.out.println("编号\t姓名\t性别\t身高\t年龄");
        System.out.println(id + "\t\t" + name + "\t\t" + sex + "\t\t" + high + "\t\t" + age);
    }
}
